import { request } from '@/utils';

/** 获取通知 */
export const getInform = (type: 'user' | 'class') => {
  return request.get(`/api/Message/MessageInfo?type=${type}`);
};

/** 标记为已读 */
export const markAsRead = (ids: number[]) => {
  return request.post('/api/Message/ReadMessage', { ids });
};